<style>
 .content-table {
width:100%;
margin:0;
padding:0;
border-spacing:2px;
 }
 .tourBoxContent{
float: left; 
margin-left: 10px;
border-right: 5px solid #FFF;
border-bottom: 5px solid #FFF;width: 45%;height: 128px;
 }
 .tourBoxName{
margin-top: 100px;margin-top: 100px;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
color: white; 
}
.head {width:100%; height:50px; background-color:#26BA9A;}
.head-table td {color:white; text-align:center;}
 </style>

<div class="content-table">
    <div class="head">
        <table class="head-table">
        <tr>
            <td><div style="margin-left: 15px;width: 100%;margin-top: 10px;"><input type="text" placeholder="请输入查询内容"  data-role="none" style="float: left;"><button  data-role="none" style="margin-top: 2px;" >搜索</button></div></td>
        </tr>
        </table>
    </div>
    <?php
       foreach ($messageList as $message) {
           $detailUrl = $control->getLinkUrl(array('name' => 'detail','id' => 'tourBoxNoteDetail'),array('messageID'=>$message->id,'messageName'=>$message->name,'messageDsc'=>$message->description));
           $messageImage = $message->getMediaManager()->getMedia('image')->content;
          if(strlen($messageImage)>0){
              $goodPic=$messageImage;
          }
          else{
              $goodPic='#';
          }
?>

        <a href="<?php echo $detailUrl;?>"> <div class="tourBoxContent"style="
          background-image: url(<?php echo Yii::app()->request->baseUrl.$goodPic; ?>); background-size: 100% 100%;" >
        <p class="tourBoxName" ><?php echo $message->name; ?></p>
        </div></a>

<?php } ?>
</div>

